﻿<Application 
    x:Class="Store.WP7.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"       
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:viewModels="clr-namespace:Store.WP7.ViewModels;assembly=Store.WP7.ViewModels"
    xmlns:converters="clr-namespace:Store.WP7.Framework.Converters;assembly=Store.WP7.Framework">

    <!--Application Resources-->
    <Application.Resources>
    	<ResourceDictionary>
    		<ResourceDictionary.MergedDictionaries>
    			<ResourceDictionary Source="Assets/DataTemplates.xaml"/>
                <ResourceDictionary Source="Styles/Styles.xaml" />
            </ResourceDictionary.MergedDictionaries>
    		<viewModels:ViewModelLocator x:Key="ViewModelLocator" />
    		<converters:InvertBooleanToVisibilityConverter x:Key="InvertBooleanToVisibilityConverter" />
    		<converters:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
            <converters:ToUpperConverter x:Key="ToUpperConverter" />
    	</ResourceDictionary>
    </Application.Resources>

    <Application.ApplicationLifetimeObjects>
        <!--Required object that handles lifetime events for the application-->
        <shell:PhoneApplicationService 
            Launching="Application_Launching" Closing="Application_Closing" 
            Activated="Application_Activated" Deactivated="Application_Deactivated"/>
    </Application.ApplicationLifetimeObjects>

</Application>